package commons.base.serialization.protostuff.example;

import java.util.ArrayList;
import java.util.List;

import io.protostuff.Tag;

public class Users {

	@Tag(1)
	private List<User> userList = new ArrayList<>();
	
	public List<User> getUserList() {
		return userList;
	}

	public void setUserList(List<User> userList) {
		this.userList = userList;
	}

	public static class User {
		@Tag(1)
	    private String nick;
		@Tag(2) 
	    private String sex;
		@Tag(3) 
	    private String avatar;
		
		public String getNick() {
			return nick;
		}
		public void setNick(String nick) {
			this.nick = nick;
		}
		public String getSex() {
			return sex;
		}
		public void setSex(String sex) {
			this.sex = sex;
		}
		public String getAvatar() {
			return avatar;
		}
		public void setAvatar(String avatar) {
			this.avatar = avatar;
		}
		
	}
}
